package com.echo.register.commons.result;

public class CodeMsg {

    private String code;
    private String msg;

    public static final CodeMsg SUCCESS = new CodeMsg("0000", "操作成功");
    public static final CodeMsg FAIL = new CodeMsg("1111", "操作失败");

    private CodeMsg(){

    }

    private CodeMsg(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
